<?php 
define("_needlogin", "0");
define("_access", "1");
include_once(dirname(__FILE__)."/../include/db.config.php");
if (!isset($_SESSION))
	session_start();
$id=$_GET['id'];
$_SESSION['writeup_id']=$id;
$sql = "SELECT writeup_id from challenge where id=$id";
$h = array();
$h= getOne($sql);
echo json_encode($h, JSON_UNESCAPED_UNICODE);
